import React, { Component } from 'react';
import { Alert } from 'react-native';

import PhotoBrowser from 'react-native-photo-browser';


export default class photoBrowser extends Component {
    constructor(props) {
      super(props);
      this.state = {};
    }



    render() {

        let params = this.props.route.params

        return (
            <>
            <PhotoBrowser
                mediaList={params.mediaList}
                initialIndex={0}
                displayNavArrows={false}
                displayTopBar={true}
                displaySelectionButtons={false}
                displayActionButton={false}
                startOnGrid={false}
                enableGrid={false}
                alwaysDisplayStatusBar={true}
                customTitle={()=>params.title}
            />
            </>
        );
    }
}